package model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

public class Game implements Serializable{

	private Long id;

	private String mapName;
	
	private int[] map;
	
	private Date dataInicio;
	
	private Team team1;
	
	private Team team2;
	
	private Set<Item> itens;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Game(){
		dataInicio = new Date();
	}

	public String getMapName() {
		return mapName;
	}

	public void setMapName(String mapName) {
		this.mapName = mapName;
	}

	public int[] getMap() {
		return map;
	}

	public void setMap(int[] map) {
		this.map = map;
	}

	public Date getDataInicio() {
		return dataInicio;
	}

	public void setDataInicio(Date dataInicio) {
		this.dataInicio = dataInicio;
	}

	public Team getTeam1() {
		return team1;
	}

	public void setTeam1(Team team) {
		this.team1 = team;
	}
	
	public Team getTeam2() {
		return team2;
	}

	public void setTeam2(Team team) {
		this.team2 = team;
	}


	public Set<Item> getItens() {
		return itens;
	}

	public void setItens(Set<Item> itens) {
		this.itens = itens;
	}
	
	private static final long serialVersionUID = -6952225222129091943L;
	
}
